/*
 * 文件名：ResultVO.java
 * 版权：Copyright 2006-2011 AsiaInfo Tech. Co. Ltd. All Rights Reserved. 
 * 描述： ResultVO.java
 * 修改人：Administrator
 * 修改时间：2011-8-10
 * 修改内容：新增
 */
package com.fengxing.ams.pub.dto;

import com.fengxing.ams.pub.util.ErrorDescUtil;

/**
 * 异常处理流程，REST接口返回对象
 * <p>
 * 异常处理流程，REST接口返回对象
 * <p>
 * 
 * <pre>
 * </pre>
 * 
 * @author Administrator
 * @version CTMS V100R001 2011-8-10
 * @since CTMS V100R001C01
 */
public class ResultDTO
{

	private String message;

	private Long code;

	public ResultDTO(Long code) {
		this.code = code;
		this.message = ErrorDescUtil.getDescByCode(code);
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Long getCode() {
		return code;
	}

	public void setCode(Long code) {
		this.code = code;
	}

}
